// Utilities
import { defineStore } from 'pinia'

export const useAppStore = defineStore('app', {
  state: () => ({
    //
    topMsg: '',
  }),
  getters: {
    appBarMsg: (state): string=> state.topMsg,
  },
  actions: {
    updateAppBarMsg(msg: string) {
      this.$state.topMsg = msg;
    }
  }
})
